Skip to main content

All Questions

11votes
4answers
4kviews

Can a class contain its own class?

Suppose I have the following class structure: A forest can have any number of trees, but each tree can belong to only one forest. If the forest is deleted, the tree is deleted. A tree must have at ...
Alan's user avatar
  • 229

close